#!/bin/fish

# original notion to test...
#20230529 mozart jentoo /home/digit % sudo brl fetch -n test-alpine alpine ;and bedrockascii ; sudo brl remove test-alpine

# do wat?   all the fetches.
function fetchtests
#for i in (brl fetch --list --experimental)
#for i in (brl fetch --list) ; sudo brl fetch -n test-$i $i ;and bedrockascii ;and echo "$i test worked" ; sudo brl remove test-$i ; end
for i in (brl fetch --list --experimental)
    
    # [ 1 ]   say which
#    bedrockascii
    echo "### FETCHING $i ### "
#    bedrockascii-shadey
    
    # [ 2 ]   do it
    ; sudo brl fetch -n test-$i $i
    
    # [ 3 ]   success?
    #    ;and success
    ;and echo "$i test worked" | tee >> fetchtests
#    bedrockascii
    
    # [ 4 ]   delete it
    sudo brl remove -d test-$i ;and echo "$i removal worked" | tee >> fetchtests
end
end

# do it!

fetchtests
